package server.business.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import server.business.pojo.BloodDiscardReason;
import server.business.service.BloodDiscardReasonService;
import server.business.utils.results.lrz.Result;

import java.util.List;

/**
 * @author wwjh
 * @date 2023年01月28日 14:37
 */
@RestController
@RequestMapping("/bloodDiscardReason")
public class BloodDiscardReasonController {
    @Autowired
    BloodDiscardReasonService bloodDiscardReasonService;

    @GetMapping(value = "/normal/getName")
    public Result getName() {
        List<BloodDiscardReason> bloodDiscardReasons = bloodDiscardReasonService.list();
        return Result.success(bloodDiscardReasons);
    }



}
